package com.westos.echufang.dao;

import com.westos.echufang.pojo.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AdminDao {

    Admin getAdminByPh(@Param("phone") String phone);

    //找回密码页面通过手机修改密码
    Integer alterPwd(Admin admin);

    Integer addAdmin(Admin admin);

    Admin queryPersonalInfor(int id);

    int updatePwdById(@Param("id") int id, @Param("password") String newPwd);
}
